package edu.sctu.zcy.month201505.day20150504.polymorphic;

/**
 * Created by user24 on 2015/5/4.
 */
public class DownDemo {

    static void print(Employee e) {
        Manager m = (Manager) e;
        System.out.println("姓名：" + m.getName());
        System.out.println("性别：" + m.getSex());
        System.out.println("年龄：" + m.getAge());
        System.out.println("分红：" + m.getDividend());
        System.out.println("收入：" + m.getInCome());
    }

    public static void main(String[] args) {
        Manager m1 = new Manager("王五", "男");
        m1.setWage(9000);
        m1.setDividend(90000);
        m1.setAge(34);
        print(m1);
    }
}
